
		<div class="m_right">
            <p></p>
            <div class="mem_tit">收货地址</div>
    <foreach name="message" item="vo">
			<div class="address">
            	<div class="a_close"><a  href="{$deladdress}?deladdressid={$vo['id']}" onclick="return del();" style="cursor: pointer;" title="删除该收货地址"><img src="__PUBLIC__/qianduan/images/a_close.png" /></a></div>
            	<table border="0" class="add_t" align="center" style="width:98%; margin:10px auto;" cellspacing="0" cellpadding="0">
                  
                  <tr>
                    <td width="80">收货人姓名：</td>
                    <td>{$vo['buyusername']}</td>
                  </tr>
                 
                  <tr>
                    <td >详细地址：</td>
                    <td>{$vo['province']}，{$vo['city']}，{$vo['area']}，{$vo['detailsaddress']}</td>
                  </tr>
                  <tr>
                    <td >邮编：</td>
                    <td>{$vo['code']}</td>
                  </tr>
                  <tr>
                    <td >手机：</td>
                    <td>{$vo['phone']}</td>
                  </tr>
                  <tr>
                    <td >电话：</td>
                    <td>{$vo['telphone']}</td>
                  </tr>
                </table>
				
                <p align="right">
                	<a href="#" style="color:#ff4e00;">设为默认</a>&nbsp; &nbsp; &nbsp; &nbsp; <a href="#" style="color:#ff4e00;">编辑</a>&nbsp; &nbsp; &nbsp; &nbsp; 
                </p>

        </div>
</foreach>

            <div class="mem_tit">
            	<a href="#"><img src="__PUBLIC__/qianduan/images/add_ad.gif" /></a>
            </div>
  <!--*****************************保存收货地址开始***************************************-->
          <form method="post" action="{$action}">
             <table class="add_tab" style="width: 99%;font-size: 14px">
              <tr>
               <td class="label_name">收货地址</td>
               <td colspan="3" class="select"> 
               <span class="select_adderss"><label> 省份 </label><select class="kitjs-form-suggestselect changeAct" id="level1" level="1" name="province">
                <option value="0">请选择</option>
                 <volist name="states" id="state">
                 <option value="{$state.id}">{$state.name}</option>
                 </volist>
               </select></span>
               <span class="select_adderss"><label> 市/县 </label><select class="kitjs-form-suggestselect changeAct" id="level2" level="2" name="city">
                <option value="0">请选择</option>
                 <volist name="areas" id="area">
                  <option value="{$area.id}">{$area.name}</option>
                 </volist>
               </select></span>
               <span class="select_adderss"><label> 区/县 </label><select class="kitjs-form-suggestselect" id="level3" level="3" name="area">
                <option value="0">请选择</option>
                 <volist name="locals" id="local">
                  <option value="{$local.id}">{$local.name}</option>
                 </volist>
               </select></span>
               <tr>
                 <td>详细地址</td><td colspan="3"><textarea cols="100" rows="2" name="detailsaddress"></textarea></td>
               </tr>
               
               </td>
               </tr>
              <tr >
              <td class="label_name">收件人姓名</td><td><input name="buyusername" type="text"  class="Add-text"/><i>（必填）</i></td><td class="label_name">性&nbsp;&nbsp;别</td><td> 
                <label class="sex"> <input type="radio" name="gender" value="1" id="RadioGroup1_0"  class="select"/><span>男</span></label>
                <label class="sex"><input type="radio" name="gender" value="2" id="RadioGroup1_1" class="select"/><span>女</span></label><i>（选填）</i> </td>
              
              </tr>
              <tr>
              <td class="label_name">邮&nbsp;&nbsp;编</td><td><input name="code" type="text"  class="Add-text"/><i>（必填）</i></td><td class="label_name">电子邮箱</td><td><input name="email" type="text"  class="Add-text"/><i>（选填）</i></td>
              
              </tr>
              <tr><td class="label_name">手&nbsp;&nbsp;机</td><td><input name="phone" type="text"  class="Add-text"/><i>（必填）</i></td>
              <td class="label_name">固定电话</td><td><input name="telphone" type="text"  class="Add-text"/><i>（选填）</i></td></tr>
              
                         
             </table>
             <div class="address_Note"><span style="color: red">&nbsp; &nbsp; 注：只能添加5个收货地址信息。请勿用假名填写地址，如造成损失由收货人自己承担。</span></div>
             <!-- <div class="btn"><input name="1" type="submit" value="添加地址" class="Add_btn" /></div> -->&nbsp; &nbsp;<button  style="margin:0;padding:0;height: 30px;width: 100px;text-align: center;background-color: green;line-height: 26px;outline: none;border-radius: 8px;color: #fff;font-size: 14px">修改并保存</button>
                   </form>
           	<!-- <p align="right">
            	<a href="#">删除</a>&nbsp; &nbsp; <a href="#" class="add_b">确认修改</a>
            </p> --> 
       <!--*****************************保存收货地址结束***************************************-->
        <script type="text/javascript">
         $(".changeAct").on('change',function(){
            var level = $(this).attr('level');
            $.ajax({
                type:'post',
                data:'pid='+$(this).val(),
                url:'{$region}',
                dataType:'json',
                success:function(data){
                    if(data.status=="OK"){
                        var html = '<option value="0">请选择</option>';
                        for (var i = 0; i < data.area.length; i++) {
                            html=html+'<option value="'+data.area[i].id+'">'+data.area[i].name+'</option>';
                        }
                        $level = parseInt(level)+1;
                        $('#level'+$level).html(html);
                    }
                }
            });
         });
       </script>
            <!--删除按钮事件-->
       <script type="text/javascript">//删除事件
                function del(){
                    if(confirm('确定要删除吗？')){
                        return true;
                    }else{
                        return false;
                    }
                }
      </script>

            
            
        </div>
    <!-- </div> -->
	<!--End 用户中心 End--> 